home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / DiskInit.a < prev    next >
Encoding:
Text File  |  1997-08-12  |  4.3 KB  |  171 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        DiskInit.a
  3. ;
  4. ;    Contains:    Disk Initialization Package ('PACK' 2) Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.0.1
  8. ;
  9. ;    Copyright:    © 1985-1997, 1997 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__DISKINIT__') = 'UNDEFINED' THEN
  19. __DISKINIT__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.  
  25. HFSDefaults                RECORD 0
  26. sigWord                     ds.b    2                ; offset: $0 (0)        ;  signature word 
  27. abSize                     ds.l    1                ; offset: $2 (2)        ;  allocation block size in bytes 
  28. clpSize                     ds.l    1                ; offset: $6 (6)        ;  clump size in bytes 
  29. nxFreeFN                 ds.l    1                ; offset: $A (10)        ;  next free file number 
  30. btClpSize                 ds.l    1                ; offset: $E (14)        ;  B-Tree clump size in bytes 
  31. rsrv1                     ds.w    1                ; offset: $12 (18)        ;  reserved 
  32. rsrv2                     ds.w    1                ; offset: $14 (20)        ;  reserved 
  33. rsrv3                     ds.w    1                ; offset: $16 (22)        ;  reserved 
  34. sizeof                     EQU *                    ; size:   $18 (24)
  35.                         ENDR
  36. ;
  37. ; pascal void DILoad(void )
  38. ;
  39.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  40.         Macro
  41.         _DILoad
  42.             moveq               #2,D0
  43.             move.w              D0,-(sp)
  44.             dc.w                $A9E9
  45.         EndM
  46.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  47.         IMPORT_CFM_FUNCTION DILoad
  48.     ENDIF
  49.  
  50. ;
  51. ; pascal void DIUnload(void )
  52. ;
  53.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  54.         Macro
  55.         _DIUnload
  56.             moveq               #4,D0
  57.             move.w              D0,-(sp)
  58.             dc.w                $A9E9
  59.         EndM
  60.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  61.         IMPORT_CFM_FUNCTION DIUnload
  62.     ENDIF
  63.  
  64. ;
  65. ; pascal short DIBadMount(Point where, long evtMessage)
  66. ;
  67.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  68.         Macro
  69.         _DIBadMount
  70.             moveq               #0,D0
  71.             move.w              D0,-(sp)
  72.             dc.w                $A9E9
  73.         EndM
  74.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  75.         IMPORT_CFM_FUNCTION DIBadMount
  76.     ENDIF
  77.  
  78. ;
  79. ; pascal OSErr DIFormat(short drvNum)
  80. ;
  81.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  82.         Macro
  83.         _DIFormat
  84.             moveq               #6,D0
  85.             move.w              D0,-(sp)
  86.             dc.w                $A9E9
  87.         EndM
  88.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  89.         IMPORT_CFM_FUNCTION DIFormat
  90.     ENDIF
  91.  
  92. ;
  93. ; pascal OSErr DIVerify(short drvNum)
  94. ;
  95.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  96.         Macro
  97.         _DIVerify
  98.             moveq               #8,D0
  99.             move.w              D0,-(sp)
  100.             dc.w                $A9E9
  101.         EndM
  102.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  103.         IMPORT_CFM_FUNCTION DIVerify
  104.     ENDIF
  105.  
  106. ;
  107. ; pascal OSErr DIZero(short drvNum, ConstStr255Param volName)
  108. ;
  109.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  110.         Macro
  111.         _DIZero
  112.             moveq               #10,D0
  113.             move.w              D0,-(sp)
  114.             dc.w                $A9E9
  115.         EndM
  116.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  117.         IMPORT_CFM_FUNCTION DIZero
  118.     ENDIF
  119.  
  120. ;    DIXFormat, DIXZero, and DIReformat are only available when FSM (File System Manager) is installed.
  121. ;    FSM is part of Macintosh PC Exchange and System 7.5.
  122. ;
  123.  
  124. ;
  125. ; pascal OSErr DIXFormat(short drvNum, Boolean fmtFlag, unsigned long fmtArg, unsigned long *actSize)
  126. ;
  127.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  128.         Macro
  129.         _DIXFormat
  130.             moveq               #12,D0
  131.             move.w              D0,-(sp)
  132.             dc.w                $A9E9
  133.         EndM
  134.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  135.         IMPORT_CFM_FUNCTION DIXFormat
  136.     ENDIF
  137.  
  138. ;
  139. ; pascal OSErr DIXZero(short drvNum, ConstStr255Param volName, short fsid, short mediaStatus, short volTypeSelector, unsigned long volSize, void *extendedInfoPtr)
  140. ;
  141.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  142.         Macro
  143.         _DIXZero
  144.             moveq               #14,D0
  145.             move.w              D0,-(sp)
  146.             dc.w                $A9E9
  147.         EndM
  148.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  149.         IMPORT_CFM_FUNCTION DIXZero
  150.     ENDIF
  151.  
  152. ;
  153. ; pascal OSErr DIReformat(short drvNum, short fsid, ConstStr255Param volName, ConstStr255Param msgText)
  154. ;
  155.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  156.         Macro
  157.         _DIReformat
  158.             moveq               #16,D0
  159.             move.w              D0,-(sp)
  160.             dc.w                $A9E9
  161.         EndM
  162.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  163.         IMPORT_CFM_FUNCTION DIReformat
  164.     ENDIF
  165.  
  166.  
  167.  
  168.     ENDIF ; __DISKINIT__ 
  169.  
  170.